package mapapp;


public class Punct {
	double latitude;
	double longitude;
	
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	
	
	public Punct(){
		this.latitude=0;
		this.longitude=0;
	}
	public Punct(double lat,double longt){
		this.latitude=lat;
		this.longitude=longt;
	}
	public double distance(Punct p){
		return Math.sqrt(Math.pow(this.longitude-p.longitude,2)+Math.pow(this.latitude-this.latitude, 2));
	}

}
